<div class="main-page">    
    <div class="content-page">  
        <img width="30%" src="<?php echo Yii::app()->createUrl($dataPost->main_image);?>">
        <div class="content">
        <?php $content = str_replace('../../files/posts/', '../files/posts/', $dataPost->content) ?>
        <?php echo $content; ?>            
        </div>
        <div class="social">
            <div id="fb-root"></div>                
            <script>(function(d, s, id) {
              var js, fjs = d.getElementsByTagName(s)[0];
              if (d.getElementById(id)) return;
              js = d.createElement(s); js.id = id;
              js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=1401311996778175";
              fjs.parentNode.insertBefore(js, fjs);
            }(document, 'script', 'facebook-jssdk'));</script>
            <div class="fb-like" style="margin: 0px 30px 0px 30px !important; width:50px !important; display: inline-block !important" data-href="<?php echo Yii::app()->createAbsoluteUrl($dataPost->getDetailLink()) ?>" data-width="50" data-layout="button_count" data-show-faces="false" data-send="false"></div>
            <div class="g-plusone" data-size="Medium" data-href="<?php echo Yii::app()->createAbsoluteUrl($dataPost->getDetailLink()) ?>"></div>
            <!-- Place this render call where appropriate -->
            <script type="text/javascript">
                (function() {
                   var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
                   po.src = 'https://apis.google.com/js/plusone.js';
                   var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
                })();
            </script>
        </div>
        
        <div class="fb-comments" data-href="<?php echo $dataPost->getDetailLink() ?>" data-numposts="10" data-colorscheme="light"></div>
    </div>    
</div>

<div class="separator"><span>BÀI VIẾT KHÁC</span></div>
<?php if(isset($modelPostDiff)):?>
<ul class="category">
    <?php foreach($modelPostDiff as $item):?>
        <li><a href="<?php echo $item->getDetailLink() ?>"><?php echo $item->title ?></a></li>        
    <?php endforeach;?>
</ul>    
<?php endif; ?>